<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            max-width: 100rem;
            height: 100vh;
            margin: auto;
            position: relative;
            overflow: hidden;
        }
        .box .box-x{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            transition: all 1s;
        }
        .box .box-x div{
        width: 100%;
        height: 100%;
        }
        .box .box-x div img{
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
    <div class="box"> 
       <div class="box-x">
        <div>
            <img src="../image/看电视.gif" alt=""/>
        </div>
        <div>
            <img src="../image/刷视频.gif" alt=""/>
        </div>
        <div>
            <img src="../image/看电视.gif" alt=""/>
        </div>
        <div>
            <img src="../image/刷视频.gif" alt=""/>
        </div>
       </div>
    </div>
    <script>
        var ty=0;
        let setx=true
        $(document).on('wheel',(e)=>{
         if(setx==true){
            var set=setTimeout(()=>{
                console.log(1)
            var deltay=e.originalEvent.deltaY
            if(deltay>0){
                ty+=100;
          $('.box-x').eq(0).css('top','-'+ty+'%')
            }else if(ty!==0){
                ty-=100;
            $('.box-x').eq(0).css('top','-'+ty+'%')
            }
            setx=true
          },100)
         }
         setx=false
        //  clearInterval(set)
        })
    </script>
</body>
</html>